Create unit
You can create a unit in the game by a script,
but you must get the X,Y coordinates to create the unit.
Now we start to create a unit:
1. Create a unit in the editor on the position you want to create a unit later.
2. Now give the unit a name, in this example we use the name Jack
3. Now save the mission
4. After saving, open the folder where the mission has been saved.
5. Open the *.SQM file with the text editor.
6. Search for the name Jack and copy it's position (at: position[]=)
7. Now delete the unit Jack in the game,
This is the command to create a unit
Testunit = "bmp" CreateVehicle [X,Y]
8. Copy the coordinate you did copy in step 6 to the field with the X,Y.
Testunit = "bmp" CreateVehicle [9594.337891,1.592371,2212.121094]
As you see there are 3 coordinates you have just paste into the command, that is X,Z,Y
Just erase the Z value, because this is not necessary
Now when the you start the script with the command to create a unit, you will see
a BMP tank has been created on the position where the unit Jack has been created.